home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Folder Watching / FW Receiver ƒ / Sources / Prototypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  1.7 KB  |  80 lines  |  [TEXT/CWIE]

  1. #ifndef __PROTOTYPES__
  2. #define __PROTOTYPES__
  3.  
  4.  
  5.  
  6. // System Includes
  7. #ifndef __WINDOWS__
  8.     #include <Windows.h>
  9. #endif
  10.  
  11.  
  12.  
  13.  
  14.  
  15. // Application Includes
  16. #ifndef __BAREBONES__
  17.     #include "BareBones.h"
  18. #endif
  19.  
  20.  
  21.  
  22.  
  23.  
  24. // BareBones.c
  25. void        main ( void );
  26.  
  27.  
  28. // Initialize.c
  29. void        InitToolbox ( void );
  30. void        InitApplication ( void );
  31.  
  32.  
  33. // AppleEventStuff.c
  34. OSErr        InstallAppleEventHandlers ( void );
  35.  
  36.  
  37. // Events.c
  38. void        EventLoop ( void );
  39.  
  40.  
  41. // Windows.c
  42. void        CreateWindow ( void );
  43. WindowRef    DestroyWindow ( WindowRef windowRef );
  44. OSErr        CreateListWindow ( WindowRef* windowRef, tContentsProcPtr contentsProc, void* refCon );
  45. void        DoActivate ( EventRecord* theEvent );
  46. void        DoUpdate ( EventRecord* theEvent );
  47. void        DoContentClick ( WindowRef theWindow, EventRecord* theEvent );
  48. void        DoDragWindow ( WindowRef theWindow, EventRecord* theEvent );
  49.  
  50. void         AddToListContent ( StringPtr pStr );
  51. OSErr        RemoveNotification( void );
  52.  
  53.  
  54. // Menus.c
  55. void        MenuDispatch ( SInt32 menuResult );
  56.  
  57.  
  58. // Lists.c
  59. Boolean        HandleListClick ( WindowRef theWindow, EventRecord* event );
  60. void        AddToList ( ListRef theList, Str255 theString );
  61. void        GetListRect ( ListRef theList, Rect* theRect );
  62. void        LocalToGlobalRect ( Rect* theRect );
  63.  
  64.  
  65. // Utilities.c
  66. StringPtr    CopyPStr ( Str255    inSourceStr, StringPtr outDestStr, SInt16 inDestSize );
  67. StringPtr    ConcatPStr ( Str255 ioFirstStr, Str255 inSecondStr, SInt16 inDestSize );
  68. void        OSTypeToPStr ( OSType inOSType, StringPtr outString );
  69. void        PStrToOSType ( StringPtr inString, OSType* outOSType );
  70. void        AlertUser ( short messageCode, short errorNum, StringPtr theString );
  71. void        LocalToGlobalRect ( Rect* theRect );
  72. Boolean        IsMovableModal ( WindowRef theWindow );
  73.  
  74. #if DEBUGGING
  75. void        DebugStrNum ( Str255 str, SInt32 num );
  76. #endif
  77.  
  78.  
  79. #endif
  80.